{	Problem: http://codeforces.ru/problemset/problem/4/A
	Verdict: Accepted

}
var n:longint;
begin
readln(n);
if (odd(n-2)) or (n=2) then writeln('NO') else writeln('YES');
end.